<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="sec"	uri="http://www.springframework.org/security/tags"%>

<table class="adminlist" cellpadding="1">
	<thead>
		<tr>
			<th width="2%" class="title">#</th>

			<th width="15%" class="title">Nom</th>
			<th width="35%" class="title">Description</th>
			<th width="25%" class="title" nowrap="nowrap">Lien</th>
			<th width="10%" class="title" nowrap="nowrap">Supp.</th>
			<th width="30%" class="title" nowrap="nowrap">Ajou.Param</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${servicelist}" var="service">
			<tr class="row0">
				<td align="center"><a href="editservice?id=${service.id}"> ${service.id}</a>
				</td>
				<td align="center"><a href="#"> ${service.nom}</a>
				</td>
				<td align="center"><a href="#"> ${service.description}</a>
				</td>
				<td align="center"><a href="#"> ${service.lien}</a>
				</td>
				<sec:authorize ifAnyGranted="SUPER_ADMIN,ADMIN">
				<td align="center"><a href="deleteservice?id=${service.id}"  onclick="return confirm('Etes-vous sure de supprimer ce service ?');"><img src='<c:url value="/images/icon_delete.gif"></c:url>'/></a></td>
				</sec:authorize>
				<sec:authorize ifAnyGranted="SUPER_ADMIN,ADMIN">
				<td align="center"><a href="newparametreService?id=${service.id}"><img src='<c:url value="/images/open.png"></c:url>'/></a></td>
				</sec:authorize>
			</tr>
		</c:forEach>
	</tbody>
</table>